package cm.sms.config;

import cm.sms.SmsClientFactory;
import cm.sms.impl.SmsClientFactoryImpl;
import cm.sms.service.SmsChannelService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * 短信配置类
 *
 * @author
 */
@Configuration
public class SmsAutoConfiguration {

    @Resource
    SmsChannelService smsChannelService;
    @Bean
    public SmsClientFactory smsClientFactory() {
        return new SmsClientFactoryImpl(smsChannelService);
    }
}
